<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>stapes例子02</title>
    <script type="text/javascript" src="../lib/stapes-0.8.1/stapes.js"></script>
</head>
<body>
    <h1>你好!!!</h1>

    <script type="text/javascript">
        var Module = Stapes.subclass({
            sayName : function() {
                console.log('i say my name!');
            }
        });

        var BetterModule = Module.subclass({
            sayNameBetter : function() {
                this.sayName(); // Inherits 'sayName' from 'Module'
                console.log('i say my name better!');
            }
        });

        var module = new BetterModule();
        module.sayNameBetter(); // 'i say my name! i say my name better!'
    </script>


</body>
</html>